using System.Collections.Generic;
using System.Linq;
using ThuySan.Bussiness;

namespace ThuySan.Repository
{
    public partial class CategoryPropertyRepository
    {
        public bool CheckInsertCategoryProperty(CategoryProperty categoryProperty)
        {
            return !DbSet.Any(c => c.PropertyId == categoryProperty.PropertyId && c.CategoryId == categoryProperty.CategoryId);
        }

        public bool CheckDeleteCategoryProperty(IEnumerable<int> enumerable)
        {
            return true;
        }
    }
}
